(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[78],{6649:function(e,n,t){"use strict";var i,o,r=t(5697),a=t.n(r),s=t(7294);function c(){return(c=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(this,arguments)}function d(e,n){if(null==e)return{};var t,i,o={},r=Object.keys(e);for(i=0;i<r.length;i++)t=r[i],n.indexOf(t)>=0||(o[t]=e[t]);return o}var u=(i=o={exports:{}},o.exports,function(e){if("undefined"!=typeof window){var n,t=0,o=!1,r=!1,a=7,s="[iFrameSizer]",c=s.length,d=null,u=window.requestAnimationFrame,l={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},f={},m=null,g={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){z("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}},h={};window.jQuery&&((n=window.jQuery).fn?n.fn.iFrameResize||(n.fn.iFrameResize=function(e){return this.filter("iframe").each(function(n,t){S(t,e)}).end()}):M("","Unable to bind to jQuery, it is not fully loaded.")),"function"==typeof e&&e.amd?e([],A):i.exports=A(),window.iFrameResize=window.iFrameResize||A()}function p(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function w(e,n,t){e.addEventListener(n,t,!1)}function b(e,n,t){e.removeEventListener(n,t,!1)}function y(e){return f[e]?f[e].log:o}function v(e,n){k("log",e,n,y(e))}function M(e,n){k("info",e,n,y(e))}function z(e,n){k("warn",e,n,!0)}function k(e,n,t,i){if(!0===i&&"object"==typeof window.console){var o;console[e](s+"["+(o="Host page: "+n,window.top!==window.self&&(o=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+n:"Nested host page: "+n),o)+"]",t)}}function x(e){function n(){t("Height"),t("Width"),W(function(){var e;C(L),T(A),R(A,"onResized",L)},L,"init")}function t(e){var n=Number(f[A]["max"+e]),t=Number(f[A]["min"+e]),i=e.toLowerCase(),o=Number(L[i]);v(A,"Checking "+i+" is in range "+t+"-"+n),o<t&&(o=t,v(A,"Set "+i+" to min value")),o>n&&(o=n,v(A,"Set "+i+" to max value")),L[i]=""+o}function i(e){return j.substr(j.indexOf(":")+a+e)}function o(e,n){var t;t=function(){var t,i;P("Send Page Info","pageInfo:"+(t=document.body.getBoundingClientRect(),JSON.stringify({iframeHeight:(i=L.iframe.getBoundingClientRect()).height,iframeWidth:i.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(i.top-t.top,10),offsetLeft:parseInt(i.left-t.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,n)},h[n]||(h[n]=setTimeout(function(){h[n]=null,t()},32))}function r(e){var n=e.getBoundingClientRect();return F(A),{x:Math.floor(Number(n.left)+Number(d.x)),y:Math.floor(Number(n.top)+Number(d.y))}}function u(e){var n=e?r(L.iframe):{x:0,y:0},t={x:Number(L.width)+n.x,y:Number(L.height)+n.y};v(A,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top!==window.self?window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](t.x,t.y):z(A,"Unable to scroll to requested position, window.parentIFrame not found"):(d=t,l(),v(A,"--"))}function l(){var e;!1!==R(A,"onScroll",d)?T(A):d=null}function m(e){var n;R(A,e,{iframe:L.iframe,screenX:L.width,screenY:L.height,type:L.type})}var g,p,y,k,x,I,S,N,j=e.data,L={},A=null;"[iFrameResizerChild]Ready"===j?!function(){for(var e in f)P("iFrame requested init",H(e),f[e].iframe,e)}():s===(""+j).substr(0,c)&&j.substr(c).split(":")[0]in f?(p=(g=j.substr(c).split(":"))[1]?parseInt(g[1],10):0,y=f[g[0]]&&f[g[0]].iframe,k=getComputedStyle(y),f[A=(L={iframe:y,id:g[0],height:p+("border-box"!==k.boxSizing?0:(k.paddingTop?parseInt(k.paddingTop,10):0)+(k.paddingBottom?parseInt(k.paddingBottom,10):0))+("border-box"!==k.boxSizing?0:(k.borderTopWidth?parseInt(k.borderTopWidth,10):0)+(k.borderBottomWidth?parseInt(k.borderBottomWidth,10):0)),width:g[2],type:g[3]}).id]&&(f[A].loaded=!0),(x=L.type in{true:1,false:1,undefined:1})&&v(A,"Ignoring init message from meta parent page"),!x&&(S=!0,f[I=A]||(S=!1,z(L.type+" No settings for "+I+". Message was: "+j)),S)&&(v(A,"Received: "+j),N=!0,null===L.iframe&&(z(A,"IFrame ("+L.id+") not found"),N=!1),N&&function(){var n,t=e.origin,i=f[A]&&f[A].checkOrigin;if(i&&""+t!="null"&&!(i.constructor===Array?function(){var e=0,n=!1;for(v(A,"Checking connection is from allowed list of origins: "+i);e<i.length;e++)if(i[e]===t){n=!0;break}return n}():(n=f[A]&&f[A].remoteHost,v(A,"Checking connection is from: "+n),t===n)))throw Error("Unexpected message received from: "+t+" for "+L.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){var e,t,a,s,c,g;switch(f[A]&&f[A].firstRun&&f[A]&&(f[A].firstRun=!1),L.type){case"close":O(L.iframe);break;case"message":e=i(6),v(A,"onMessage passed: {iframe: "+L.iframe.id+", message: "+e+"}"),R(A,"onMessage",{iframe:L.iframe,message:JSON.parse(e)}),v(A,"--");break;case"mouseenter":m("onMouseEnter");break;case"mouseleave":m("onMouseLeave");break;case"autoResize":f[A].autoResize=JSON.parse(i(9));break;case"scrollTo":u(!1);break;case"scrollToOffset":u(!0);break;case"pageInfo":o(f[A]&&f[A].iframe,A),function(){function e(e,i){function r(){f[t]?o(f[t].iframe,t):n()}["scroll","resize"].forEach(function(n){v(t,e+n+" listener for sendPageInfo"),i(window,n,r)})}function n(){e("Remove ",b)}var t=A;e("Add ",w),f[t]&&(f[t].stopPageInfo=n)}();break;case"pageInfoStop":f[A]&&f[A].stopPageInfo&&(f[A].stopPageInfo(),delete f[A].stopPageInfo);break;case"inPageLink":c=decodeURIComponent(s=i(9).split("#")[1]||""),(g=document.getElementById(c)||document.getElementsByName(c)[0])?(a=r(g),v(A,"Moving to in page link (#"+s+") at x: "+a.x+" y: "+a.y),d={x:a.x,y:a.y},l(),v(A,"--")):window.top!==window.self?window.parentIFrame?window.parentIFrame.moveToAnchor(s):v(A,"In page link #"+s+" not found and window.parentIFrame not found"):v(A,"In page link #"+s+" not found");break;case"reset":E(L);break;case"init":n(),R(A,"onInit",L.iframe);break;default:n()}}())):M(A,"Ignored: "+j)}function R(e,n,t){var i=null,o=null;if(f[e]){if("function"==typeof(i=f[e][n]))o=i(t);else throw TypeError(n+" on iFrame["+e+"] is not a function")}return o}function I(e){var n=e.id;delete f[n]}function O(e){var n=e.id;if(!1===R(n,"onClose",n)){v(n,"Close iframe cancelled by onClose event");return}v(n,"Removing iFrame: "+n);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){z(e)}R(n,"onClosed",n),v(n,"--"),I(e)}function F(n){null===d&&v(n,"Get page position: "+(d={x:window.pageXOffset!==e?window.pageXOffset:document.documentElement.scrollLeft,y:window.pageYOffset!==e?window.pageYOffset:document.documentElement.scrollTop}).x+","+d.y)}function T(e){null!==d&&(window.scrollTo(d.x,d.y),v(e,"Set page position: "+d.x+","+d.y),d=null)}function E(e){v(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),F(e.id),W(function(){C(e),P("reset","reset",e.iframe,e.id)},e,"reset")}function C(e){function n(n){(function(n){if(!e.id){v("undefined","messageData id not set");return}e.iframe.style[n]=e[n]+"px",v(e.id,"IFrame ("+t+") "+n+" set to "+e[n]+"px")})(n),r||"0"!==e[n]||(r=!0,v(t,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(f).forEach(function(e){!function(e){function n(n){return"0px"===(f[e]&&f[e].iframe.style[n])}f[e]&&null!==f[e].iframe.offsetParent&&(n("height")||n("width"))&&P("Visibility change","resize",f[e].iframe,e)}(e)})}var n,t=p();t&&(n=document.querySelector("body"),new t(function(n){v("window","Mutation observed: "+n[0].target+" "+n[0].type),N(e,16)}).observe(n,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}var t=e.iframe.id;f[t]&&(f[t].sizeHeight&&n("height"),f[t].sizeWidth&&n("width"))}function W(e,n,t){t!==n.type&&u&&!window.jasmine?(v(n.id,"Requesting animation frame"),u(e)):e()}function P(e,n,t,i,o){var r=!1;f[i=i||t.id]&&(function(){if(t&&"contentWindow"in t&&null!==t.contentWindow){var o;o=f[i]&&f[i].targetOrigin,v(i,"["+e+"] Sending msg to iframe["+i+"] ("+n+") targetOrigin: "+o),t.contentWindow.postMessage(s+n,o)}else z(i,"["+e+"] IFrame("+i+") not found")}(),o&&f[i]&&f[i].warningTimeout&&(f[i].msgTimeout=setTimeout(function(){!f[i]||f[i].loaded||r||(r=!0,z(i,"IFrame has not responded within "+f[i].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))},f[i].warningTimeout)))}function H(e){return e+":"+f[e].bodyMarginV1+":"+f[e].sizeWidth+":"+f[e].log+":"+f[e].interval+":"+f[e].enablePublicMethods+":"+f[e].autoResize+":"+f[e].bodyMargin+":"+f[e].heightCalculationMethod+":"+f[e].bodyBackground+":"+f[e].bodyPadding+":"+f[e].tolerance+":"+f[e].inPageLinks+":"+f[e].resizeFrom+":"+f[e].widthCalculationMethod}function S(n,i){function r(e){var n=e.split("Callback");if(2===n.length){var t="on"+n[0].charAt(0).toUpperCase()+n[0].slice(1);this[t]=this[e],delete this[e],z(c,"Deprecated: '"+e+"' has been renamed '"+t+"'. The old method will be removed in the next major version.")}}var a,s,c=function(e){if(""===e){var r;n.id=(r=i&&i.id||g.id+t++,null!==document.getElementById(r)&&(r+=t++),e=r),o=(i||{}).log,v(e,"Added missing iframe ID: "+e+" ("+n.src+")")}return e}(n.id);c in f&&"iFrameResizer"in n?z(c,"Ignored iFrame, already setup."):(function(e){if(e=e||{},f[c]={firstRun:!0,iframe:n,remoteHost:n.src&&n.src.split("/").slice(0,3).join("/")},function(e){if("object"!=typeof e)throw TypeError("Options is not an object")}(e),Object.keys(e).forEach(r,e),function(e){for(var n in g)Object.prototype.hasOwnProperty.call(g,n)&&(f[c][n]=Object.prototype.hasOwnProperty.call(e,n)?e[n]:g[n])}(e),f[c]){var t;f[c].targetOrigin=!0===f[c].checkOrigin?""===(t=f[c].remoteHost)||null!==t.match(/^(about:blank|javascript:|file:\/\/)/)?"*":t:"*"}}(i),function(){switch(v(c,"IFrame scrolling "+(f[c]&&f[c].scrolling?"enabled":"disabled")+" for "+c),n.style.overflow=!1===(f[c]&&f[c].scrolling)?"hidden":"auto",f[c]&&f[c].scrolling){case"omit":break;case!0:n.scrolling="yes";break;case!1:n.scrolling="no";break;default:n.scrolling=f[c]?f[c].scrolling:"no"}}(),function(){function e(e){1/0!==f[c][e]&&0!==f[c][e]&&(n.style[e]=f[c][e]+"px",v(c,"Set "+e+" = "+f[c][e]+"px"))}function t(e){if(f[c]["min"+e]>f[c]["max"+e])throw Error("Value for min"+e+" can not be greater than max"+e)}t("Height"),t("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}(),("number"==typeof(f[c]&&f[c].bodyMargin)||"0"===(f[c]&&f[c].bodyMargin))&&(f[c].bodyMarginV1=f[c].bodyMargin,f[c].bodyMargin=""+f[c].bodyMargin+"px"),a=H(c),(s=p())&&n.parentNode&&new s(function(e){e.forEach(function(e){Array.prototype.slice.call(e.removedNodes).forEach(function(e){e===n&&O(n)})})}).observe(n.parentNode,{childList:!0}),w(n,"load",function(){var t,i;P("iFrame.onload",a,n,e,!0),t=f[c]&&f[c].firstRun,i=f[c]&&f[c].heightCalculationMethod in l,!t&&i&&E({iframe:n,height:0,width:0,type:"init"})}),P("init",a,n,e,!0),f[c]&&(f[c].iframe.iFrameResizer={close:O.bind(null,f[c].iframe),removeListeners:I.bind(null,f[c].iframe),resize:P.bind(null,"Window resize","resize",f[c].iframe),moveToAnchor:function(e){P("Move to anchor","moveToAnchor:"+e,f[c].iframe,c)},sendMessage:function(e){P("Send Message","message:"+(e=JSON.stringify(e)),f[c].iframe,c)}}))}function N(e,n){null===m&&(m=setTimeout(function(){m=null,e()},n))}function j(){"hidden"!==document.visibilityState&&(v("document","Trigger event: Visiblity change"),N(function(){L("Tab Visable","resize")},16))}function L(e,n){Object.keys(f).forEach(function(t){f[t]&&"parent"===f[t].resizeFrom&&f[t].autoResize&&!f[t].firstRun&&P(e,n,f[t].iframe,t)})}function A(){var n;function t(e,t){t&&(function(){if(t.tagName){if("IFRAME"!==t.tagName.toUpperCase())throw TypeError("Expected <IFRAME> tag, found <"+t.tagName+">")}else throw TypeError("Object is not a valid DOM element")}(),S(t,e),n.push(t))}return function(){var e,n=["moz","webkit","o","ms"];for(e=0;e<n.length&&!u;e+=1)u=window[n[e]+"RequestAnimationFrame"];u?u=u.bind(window):v("setup","RequestAnimationFrame not supported")}(),w(window,"message",x),w(window,"resize",function(){var e;v("window","Trigger event: "+(e="resize")),N(function(){L("Window "+e,"resize")},16)}),w(document,"visibilitychange",j),w(document,"-webkit-visibilitychange",j),function(i,o){switch(n=[],i&&i.enablePublicMethods&&z("enablePublicMethods option has been removed, public methods are now always available in the iFrame"),typeof o){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(o||"iframe"),t.bind(e,i));break;case"object":t(i,o);break;default:throw TypeError("Unexpected data type ("+typeof o+")")}return n}}}(),o.exports),l=function(){},f=function(e){var n=e.title,t=e.forwardRef,i=d(e,["title","forwardRef"]),o=(i.autoResize,i.bodyBackground,i.bodyMargin,i.bodyPadding,i.checkOrigin,i.inPageLinks,i.heightCalculationMethod,i.interval,i.log,i.maxHeight,i.maxWidth,i.minHeight,i.minWidth,i.resizeFrom,i.scrolling,i.sizeHeight,i.sizeWidth,i.warningTimeout,i.tolerance,i.widthCalculationMethod,i.onClosed,i.onInit,i.onMessage,i.onMouseEnter,i.onMouseLeave,i.onResized,d(i,["autoResize","bodyBackground","bodyMargin","bodyPadding","checkOrigin","inPageLinks","heightCalculationMethod","interval","log","maxHeight","maxWidth","minHeight","minWidth","resizeFrom","scrolling","sizeHeight","sizeWidth","warningTimeout","tolerance","widthCalculationMethod","onClosed","onInit","onMessage","onMouseEnter","onMouseLeave","onResized"])),r=(0,s.useRef)(null),a=function(){return l(!r.current,"[iframeSizerReact]["+(r&&r.current&&r.current.id)+"] Close event ignored, to remove the iframe update your React component"),!r.current};return(0,s.useEffect)(function(){var e=r.current;return u(c({},i,{onClose:a}),e),function(){return e.iFrameResizer&&e.iFrameResizer.removeListeners()}},[]),(0,s.useImperativeHandle)(t,function(){return{resize:function(){return r.current.iFrameResizer.resize()},moveToAnchor:function(e){return r.current.iFrameResizer.moveToAnchor(e)},sendMessage:function(e,n){r.current.iFrameResizer.sendMessage(e,n)}}}),s.createElement("iframe",c({title:n},o,{ref:r}))};f.defaultProps={title:"iframe"},f.propTypes={title:a().string},n.Z=f},9008:function(e,n,t){e.exports=t(2636)},2703:function(e,n,t){"use strict";var i=t(414);function o(){}function r(){}r.resetWarningCache=o,e.exports=function(){function e(e,n,t,o,r,a){if(a!==i){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:r,resetWarningCache:o};return t.PropTypes=t,t}},5697:function(e,n,t){e.exports=t(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);